//
//  DrivesModel.h
//  carcareIOS
//
//  Created by tianxing on 16/3/4.
//  Copyright © 2016年 baozun. All rights reserved.
//

#import "BaseModel.h"

@class OneDriveModel;

@interface DrivesModel : BaseModel

@property (nonatomic ,assign)NSInteger drivingMark;

@property (nonatomic ,assign)CGFloat drivingMiles;

@property (nonatomic ,assign)NSInteger drivingTime;

@property (nonatomic, copy) NSArray *travels;

@property (nonatomic, copy)NSArray *travelModels;

#pragma mark -
@property (nonatomic, assign) NSInteger dayMark;
@property (nonatomic, assign) CGFloat dayMiles;
@property (nonatomic, assign) NSInteger dayTime;
@property (nonatomic, assign) CGFloat dayFuelCost;

@end

extern NSString * const DRIVE_PLACE_UPDATE;

@interface OneDriveModel : BaseModel
//平均速度
@property (nonatomic ,assign) CGFloat avgSpeed;
//终点位置
@property (nonatomic ,copy) NSString * endGPS;
//结束时间
@property (nonatomic ,copy) NSString *endTime;
//耗油量
@property (nonatomic ,assign) CGFloat fuelConsum;
//油费
@property (nonatomic ,assign) CGFloat fuelCost;
//急加速次数
@property (nonatomic ,assign) NSInteger haTimes;
//百公里油耗
@property (nonatomic ,assign) CGFloat hundredFuel;
//分数
@property (nonatomic ,assign) NSInteger mark;
//最大速度
@property (nonatomic ,assign) CGFloat maxSpeed;
//公里数
@property (nonatomic ,assign) CGFloat mile;
//急减速次数
@property (nonatomic ,assign) NSInteger rdTimes;
//平稳指数
@property (nonatomic ,assign) NSInteger smooth;
//起点位置
@property (nonatomic ,copy) NSString * startGPS;
//出发时间
@property (nonatomic ,copy) NSString *startTime;
//耗时(分钟)
@property (nonatomic ,assign) NSInteger travelTime;

@property (nonatomic , assign) NSInteger gpsTrackFlag;//gpsTrackFlag，默认是0，也就是没有轨迹。

#pragma mark - mark
//起点位置
@property (nonatomic, copy) NSString *startPlace;
//结束位置
@property (nonatomic, copy) NSString *endPlace;
//单次行程时间
@property (nonatomic, copy) NSString * startAndEndTime;

//速度控制值 1-5
@property (nonatomic , assign) NSInteger speedControl;

//急加速控制值 1-5
@property (nonatomic , assign) NSInteger addSpeedControl;

//急减速控制值 1-5
@property (nonatomic , assign) NSInteger lowSpeedControl;

//疲劳驾驶控制值 1-4
@property (nonatomic , assign) NSInteger driveCarLongControl;

//请求轨迹使用的时间格式
@property (nonatomic , copy) NSString * startTimeGps;
@property (nonatomic , copy) NSString * endTimeGps;
//gpsTrackFlag，默认是0 ，也就是没有轨迹。gpsTrackBool= NO  否则 gpsTrackBool ＝ YES
@property (nonatomic )BOOL gpsTrackBool;
/**
    添加轨迹的两个数组， 一个gps  一个类型的
 */
@property (nonatomic , copy) NSArray * gpss;
@property (nonatomic , copy) NSArray * gpsTypes;

@property (nonatomic , assign)NSInteger speedUpTimes;//急加速次数
@property (nonatomic , assign)NSInteger speedDownTimes;//急减速次数

@end

